<?php
return array(
    'Browse@'=>array(
        //array('/^\/(\d+)?$/'i,'Browse','index','id'),
        array('/^\/(\d+)\/(\d+)/i','Browse','index','year,month'), 
        array('/^\/(\d+)(\/\w)?/i', 'Browse', 'index', 'year'),
    ),
    'Event@'=>array(
        // event/100
        array('/^\/(\d+)?$/','Event','index','id'),
        // event/100/edit
        array('/^\/(\d+)\/topic$/i','Topic','id','id'),
        array('/^\/(\d+)\/edit$/i','Event','edit','id'),
        array('/^\/(\d+)\/take$/i','Event','take','id'),
        array('/^\/(\d+)\/wish$/i','Event','wish','id'),
    ),
    'User@'=>array(
        array('/^\/(\d+)\/timeline/i','Timeline','user','uid'),
        //mock
        array('/^\/(\d+)/i','Timeline','user','uid'),
        array('/^\/(\d+)/i','User','index','uid'),
    ),
    'Group@'=>array(
        array('/^\/(\d+)\/timeline/i','Timeline','group','uid'),
        //mock
        array('/^\/(\d+)/i','Timeline','group','uid'),
        array('/^\/(\d+)/i','User','index','uid'),
    ),
    'Topic@'=>array(
        array('/^\/(\d+)?$/','Topic','index','id'),
    ),
    //不知道怎么定义分组路由= =
    'Master@'=>array(
        //event部分
        array('/^\/event\/(\w+)/','Master.Event','search','type'),
        array('/^\/event\/(\d+)\/lock/','Master.Event','lock','id'),
    ),
);
?>

